package com.zjhn.ds.domain.entity.jlw;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.domain.entity.jlw
 * @Author: sxt
 * @CreateTime: 2023-09-04  16:51
 * @Description: 车间表
 * @Version: 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("jlw.jlw_workshop")
public class Workshop {

    @TableId
    private String id;

    /**
     * 车间 名称
     */
    private String name;

    /**
     * 车间主任id
     */
    @TableField("director_id")
    private String directorId;

    /**
     * 行数
     */
    @TableField("line_number")
    private Integer lineNumber;

    /**
     * 列数
     */
    @TableField("column_number")
    private Integer columnNumber;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT, value = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT, value = "create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "update_user")
    private String updateUser;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE, value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 租户id
     */
    @TableField("TenantId")
    private String tenantId;
}
